/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.top-bar {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-bar {
    flex: 1;
    margin: 0 15px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 8px 30px 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #f5f5f5;
}

/* 商品展示区域 */
.product-container {
    background: #fff;
    margin-bottom: 10px;
}

.product-images {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.product-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 价格区域 */
.price-section {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.price-main {
    display: flex;
    align-items: baseline;
}

.price-symbol {
    color: #ff4d4f;
    font-size: 16px;
}

.product-price {
    color: #ff4d4f;
    font-size: 24px;
    font-weight: bold;
    margin-right: 10px;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

/* 商品信息区域 */
.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 卖家信息 */
.seller-info {
    display: flex;
    align-items: center;
    padding: 15px;
    border-top: 1px solid #f0f0f0;
}

.seller-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* 底部操作栏 */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 15px;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
}

.add-cart {
    background: #ffd591;
    color: #333;
}

.buy-now {
    background: #ff4d4f;
    color: #fff;
}

/* 评论区域样式 */
.comment-section {
    background: #fff;
    margin-top: 10px;
    padding: 15px;
}

.comment-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.filter-buttons button {
    margin-right: 10px;
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background: #fff;
}

.filter-buttons button.active {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}